package com.wewins.fota.bean.bo.filter;

import lombok.Data;

import java.util.List;

@Data
public class PkgFilterCond implements FilterCond {
    private String product;

    private String version;

    private List<Long> timeRange;

    private String description;

    public Long getMinTime() {
        if (timeRange == null || timeRange.size() != 2) {
            return 0L;
        }
        return timeRange.get(0);
    }

    public Long getMaxTime() {
        if (timeRange == null || timeRange.size() != 2) {
            return 0L;
        }
        return timeRange.get(1);
    }
}
